home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / langs / fplib20.arc / SOURCES.ARC / ATOF.C next >
Encoding:
C/C++ Source or Header  |  1987-04-22  |  408 b   |  20 lines

  1. /* ATOF function for Sozobon C.                        */
  2. /* Copyright = David Brooks, 1989 All Rights Reserved            */
  3.  
  4. /* Hack warning.  Hack warning.  Hack warning...            */
  5. /* Somehow I feel scanf should call atof, not the other way around.    */
  6. /* Guys???                                */
  7.  
  8. float atof(s)
  9. char *s;
  10. {    float    res;
  11.  
  12.     sscanf(s, "%g", &res);
  13.     return res;
  14. }
  15.  
  16. _scandum()
  17. {
  18.     _scanf();            /* Force floating version to load */
  19. }
  20.